/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package testGUI;

import GUI.LoginForm;
import GUI.UserCard;
import GUI.VisitInfo;
import functions.Dogs;
import functions.Users;
import junit.framework.TestCase;
import junit.framework.TestSuite;
import junit.swingui.TestRunner;
import model.Database;
import model.Dog;
import model.User;

/**
 *
 * @author JArik
 */
public class testVisitInfo extends TestCase{

    public testVisitInfo(String name)
    {
        super(name);
    }

    public static void main(String [] args)
    {
        //TestRunner runner = new TestRunner();
        //TestSuite suite = new TestSuite();
        //suite.addTest(new testUserCard("testVisits"));
        
    }

    @SuppressWarnings("empty-statement")
    public void testVisits() throws Exception
    {
        Database.connect("dogy","dogy", "q1w2e3");
        Users users = new Users();
        User user = users.startSearch().get(0);
        VisitInfo vinfo = new VisitInfo(null, null,null);
        vinfo.setMinimumSize(vinfo.getPreferredSize());
        vinfo.setVisible(true);
        while(vinfo.isVisible()) {
            Thread.sleep(100);
        }
        
    }
}
